<%@page import="com.model.CourseInfo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <style>tr{height:50px;}
    .input{
        font-size: 14px;
        width:50%;
        height:25px;
        border-radius:5px;
        box-shadow:0;
    }
    .td{
        width:150px;
    }
    td{
        padding-left:40px;
    }</style>
    <script type="text/javascript" src="js/Calendar3.js"></script>
</head>
<jsp:include page="islogin.jsp"></jsp:include>
<jsp:useBean id="courseInfoServer" class="com.jdbc.DAO.CourseInfoServer"></jsp:useBean>
<body>
<%  int course_id = Integer.parseInt(request.getParameter("course_id"));
    CourseInfo courseInfo = courseInfoServer.queryCourseById(course_id);
%>
<center>
    <form action="modifyOneCourseInfo_result.jsp" method="post">
        <table bgcolor="#fff" width="50%" style="border:1px solid #eee;" cellspacing="0" >
            <tr>
                <td align="center" bgcolor="#f4f4f4" colspan="2">修改课程信息</td>
            </tr>
            <tr>
                <td class="td">课程号：</td>
                <td><input type="text" name="course_id" class="input" value="<%=courseInfo.getCourse_id() %>"/></td>
            </tr>
            <tr>
                <td class="td">课程名：</td>
                <td><input type="text" name="course_name" class="input" value="<%=courseInfo.getCourse_name() %>"/></td>
            </tr>
            <tr>
                <td class="td">课程学分：</td>
                <td><input type="text" name="course_credit" class="input" value="<%=courseInfo.getCourse_credit() %>"/></td>
            </tr>
            <tr>
                <td class="td">授课教师：</td>
                <td><input type="text" name="course_teacher" class="input" value="<%=courseInfo.getCourse_teacher() %>"/></td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <input type="hidden" name="course_id" value="<%=courseInfo.getCourse_id() %>" />
                    <input type="submit" value="提交" style="height:30px;width:50px;border-radius:5px;background-color: #eee"/>&nbsp;&nbsp;
                    <input type="reset" value="重置" style="height:30px;width:50px;border-radius:5px;background-color: #eee"/></td>
            </tr>
        </table>
    </form>
</center>
</body>
</html>